3.5 \(\int \frac{\sqrt{b x+c x^2}}{x} \, dx\)

Optimal. Leaf size=42 \[ \sqrt{b x+c x^2}+\frac{b \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right )}{\sqrt{c}} \]

[Out]

Sqrt[b*x + c*x^2] + (b*ArcTanh[(Sqrt[c]*x)/Sqrt[b*x + c*x^2]])/Sqrt[c]

________________________________________________________________________________________

Rubi [A]  time = 0.019189, antiderivative size = 42, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.176, Rules used = {664, 620, 206} \[ \sqrt{b x+c x^2}+\frac{b \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right )}{\sqrt{c}} \]

Antiderivative was successfully verified.

[In]

Int[Sqrt[b*x + c*x^2]/x,x]

[Out]

Sqrt[b*x + c*x^2] + (b*ArcTanh[(Sqrt[c]*x)/Sqrt[b*x + c*x^2]])/Sqrt[c]

Rule 664

Int[((d_.) + (e_.)*(x_))^(m_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[((d + e*x)^(m + 1)*(
a + b*x + c*x^2)^p)/(e*(m + 2*p + 1)), x] - Dist[(p*(2*c*d - b*e))/(e^2*(m + 2*p + 1)), Int[(d + e*x)^(m + 1)*
(a + b*x + c*x^2)^(p - 1), x], x] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && EqQ[c*d^2 - b*d*e + a
*e^2, 0] && GtQ[p, 0] && (LeQ[-2, m, 0] || EqQ[m + p + 1, 0]) && NeQ[m + 2*p + 1, 0] && IntegerQ[2*p]

Rule 620

Int[1/Sqrt[(b_.)*(x_) + (c_.)*(x_)^2], x_Symbol] :> Dist[2, Subst[Int[1/(1 - c*x^2), x], x, x/Sqrt[b*x + c*x^2
]], x] /; FreeQ[{b, c}, x]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rubi steps

\begin{align*} \int \frac{\sqrt{b x+c x^2}}{x} \, dx &=\sqrt{b x+c x^2}+\frac{1}{2} b \int \frac{1}{\sqrt{b x+c x^2}} \, dx\\ &=\sqrt{b x+c x^2}+b \operatorname{Subst}\left (\int \frac{1}{1-c x^2} \, dx,x,\frac{x}{\sqrt{b x+c x^2}}\right )\\ &=\sqrt{b x+c x^2}+\frac{b \tanh ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{b x+c x^2}}\right )}{\sqrt{c}}\\ \end{align*}

Mathematica [A]  time = 0.0988608, size = 66, normalized size = 1.57 \[ \sqrt{x (b+c x)} \left (\frac{b^{3/2} \sqrt{\frac{c x}{b}+1} \sinh ^{-1}\left (\frac{\sqrt{c} \sqrt{x}}{\sqrt{b}}\right )}{\sqrt{c} \sqrt{x} (b+c x)}+1\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[b*x + c*x^2]/x,x]

[Out]

Sqrt[x*(b + c*x)]*(1 + (b^(3/2)*Sqrt[1 + (c*x)/b]*ArcSinh[(Sqrt[c]*Sqrt[x])/Sqrt[b]])/(Sqrt[c]*Sqrt[x]*(b + c*
x)))

________________________________________________________________________________________

Maple [A]  time = 0.045, size = 43, normalized size = 1. \begin{align*} \sqrt{c{x}^{2}+bx}+{\frac{b}{2}\ln \left ({ \left ({\frac{b}{2}}+cx \right ){\frac{1}{\sqrt{c}}}}+\sqrt{c{x}^{2}+bx} \right ){\frac{1}{\sqrt{c}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c*x^2+b*x)^(1/2)/x,x)

[Out]

(c*x^2+b*x)^(1/2)+1/2*b*ln((1/2*b+c*x)/c^(1/2)+(c*x^2+b*x)^(1/2))/c^(1/2)

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+b*x)^(1/2)/x,x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [A]  time = 1.89567, size = 232, normalized size = 5.52 \begin{align*} \left [\frac{b \sqrt{c} \log \left (2 \, c x + b + 2 \, \sqrt{c x^{2} + b x} \sqrt{c}\right ) + 2 \, \sqrt{c x^{2} + b x} c}{2 \, c}, -\frac{b \sqrt{-c} \arctan \left (\frac{\sqrt{c x^{2} + b x} \sqrt{-c}}{c x}\right ) - \sqrt{c x^{2} + b x} c}{c}\right ] \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+b*x)^(1/2)/x,x, algorithm="fricas")

[Out]

[1/2*(b*sqrt(c)*log(2*c*x + b + 2*sqrt(c*x^2 + b*x)*sqrt(c)) + 2*sqrt(c*x^2 + b*x)*c)/c, -(b*sqrt(-c)*arctan(s
qrt(c*x^2 + b*x)*sqrt(-c)/(c*x)) - sqrt(c*x^2 + b*x)*c)/c]

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{x \left (b + c x\right )}}{x}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x**2+b*x)**(1/2)/x,x)

[Out]

Integral(sqrt(x*(b + c*x))/x, x)

________________________________________________________________________________________

Giac [A]  time = 1.46597, size = 65, normalized size = 1.55 \begin{align*} -\frac{b \log \left ({\left | -2 \,{\left (\sqrt{c} x - \sqrt{c x^{2} + b x}\right )} \sqrt{c} - b \right |}\right )}{2 \, \sqrt{c}} + \sqrt{c x^{2} + b x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c*x^2+b*x)^(1/2)/x,x, algorithm="giac")

[Out]

-1/2*b*log(abs(-2*(sqrt(c)*x - sqrt(c*x^2 + b*x))*sqrt(c) - b))/sqrt(c) + sqrt(c*x^2 + b*x)